(Rhagoletis pomonella)
These worms, also known as railroad worms and apple fruit flies, are the larvae of flies that resemble the common housefly. Apple maggots infest plums, cherries, and pears in addition to apples. The adult flies emerge from pupae between late June and the beginning of September. They lay eggs in the fruit through holes they puncture in the skin. The maggots that emerge from the eggs make brown trails through the flesh as they feed. Infested apples usually drop to the ground. The mature maggots emerge from the apple and burrow in the soil to pupate. They remain in the soil throughout the winter, and emerge as adult flies the following June.
There is no way to kill the maggots after apples are infested. Protect healthy apples from the adult flies by spraying at intervals of 7 to 10 days from the end of June until the beginning of September with an insecticide containing carbaryl or malathion. Pick up and destroy fallen apples every week throughout the summer.